<?php
use services\models\MemberInfo;
foreach ($info as $item):
    /** @var \services\models\cache\MemberInfo $username */
    $username = MemberInfo::cache($item->uid)->username;
    $src = MemberInfo::getAvatarByMemberId($item->uid);
?>
<li data-url="<?=Yii::$app->urlManager->createUrl([Yii::$app->controller->id.'/detail', 'asf_id'=>$item->id])?>">
      <div class="item_in">
        <div class="channel_user"><span class="channel_user_pic"><img <?=$src?> /></span>
        <span class="channel_user_name"><?=$username?></span></div>
        <div class="channel_img"><img src="<?=\services\models\UpFileData::getFirstImage($item->c_image)?>"></div>
        <div class="channel_text">
		<?php 
		$content = trim($item->c_content);
		if(strlen($content) > 18) {
			echo mb_substr(trim($item->c_content),0,18,'UTF-8') ."...";
		}else{
			echo $content;
		}
		?>
		</div>
        <div class="channel_num">
          <div class="channel_views"><span class="icon icon_views"></span><span class="views_num"><?=$item->mActivityShowFeelStatistics->ShowTimes;?></span></div>
          <div class="channel_praises" data-id="<?=$item->id?>"><span class="icon icon_praise"></span><span class="praise_num"><?=$item->mActivityShowFeelStatistics->GoodTimes;?></span></div>
        </div>
      </div>
</li>
<?php endforeach; ?>